package com.itheima.service;


import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    List<Role> findAll();

    List<Integer> findCheckItemIdsByCheckGroupId(Integer id);

    void add(Role role, Integer[] checkitemIds, Integer[] permissionIds);

    PageResult findPage(QueryPageBean queryPageBean);

    Role findById(Integer id);

    void edit(Integer[] permissionIds, Integer[] checkitemIds, Role role);

    void delete(Integer id);
}
